CsvEntityList
StockSharp.Algo.Storages.Csv
List of trade objects, received from the CSV storage.
继承自: SynchronizedList<T>
实现: IStorageEntityList<T>, INotifyList<T>, INotifyCollection<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IList<T>, ISynchronizedCollection<T>, ISynchronizedCollection, ISynchronizable, ICsvEntityList, IAsyncDisposable
构造函数
CsvEntityList(CsvEntityRegistry, string, ChannelExecutor)
Initializes a new instance of the CsvEntityList.
- registry
- The CSV storage of trading objects.
- fileName
- CSV file name.
- executor
- Sequential operation executor for disk access synchronization.
属性
Cache : T[]
Cached items.
CreateArchivedCopy : bool
Create archived copy.
Registry : CsvEntityRegistry
The CSV storage of trading objects.
方法
ClearCache()
Clear cache.
DisposeAsync() : ValueTask
Disposes the resources.
OnRemoved(T)
Save(T)
WriteAsync(CsvFileWriter, T, CancellationToken) : ValueTask
Write data into CSV.
- writer
- CSV writer.
- data
- Trade object.
- cancellationToken
- CancellationToken